package com.oauth.twitter.client.beans;

import java.util.ArrayList;
import java.util.List;

import com.google.gwt.user.client.rpc.IsSerializable;

public class TwitterModel implements IsSerializable {

	private boolean mLoginView;
	private List<Tweet> mTweets;
	private TwitterUser user;

	public TwitterModel() {
		mTweets = new ArrayList<Tweet>(1);
	}

	/**
	 * @return the user
	 */
	public TwitterUser getUser() {
		return user;
	}

	/**
	 * @param pUser
	 *            the user to set
	 */
	public void setUser(TwitterUser pUser) {
		user = pUser;
	}

	/**
	 * @return the loginView
	 */
	public boolean isLoginView() {
		return mLoginView;
	}

	/**
	 * @param pLoginView
	 *            the loginView to set
	 */
	public void setLoginView(boolean pLoginView) {
		mLoginView = pLoginView;
	}

	public List<Tweet> getTweets() {
		return mTweets;
	}

	public void setTweets(List<Tweet> pUpdatedTweets) {
		mTweets = pUpdatedTweets;
	}

}
